package com.qf.feign.fallback;

import com.qf.feign.GoodsFeign;
import com.qf.pojo.Goods;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

@Component
public class GoodsFallback implements GoodsFeign {
    @Override
    public String query(@PathVariable Integer id) {
        return "服务降级了";
    }

    @Override
    public Goods findById(Integer id) {
        return null;
    }

    @Override
    public String findDetails(Integer id) {
        return null;
    }

    @Override
    public String findGoods(Goods goods) {
        return null;
    }

    @Override
    public String getGoods(Integer id, String name) {
        return null;
    }
}
